package com.learn.core.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-03-08 22:50:00
 * @describe 用户表实体类
 */
@TableName("l_user")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LUser对象", description="用户表")
public class LUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @TableField(exist = false)
    private String newPassword;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("last_time")
    private Date lastTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "电子邮件")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "详情id")
    @TableField("details_id")
    private Integer detailsId;

    @ApiModelProperty(value = "用户状态")
    @TableField("stutes")
    private String stutes;

    @TableField(exist = false)
    private LDetails lDetails;

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public LDetails getlDetails() {
        return lDetails;
    }

    public void setlDetails(LDetails lDetails) {
        this.lDetails = lDetails;
    }

    public Integer getUserId() {
        return userId;
    }

    public LUser setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public LUser setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public LUser setPassword(String password) {
        this.password = password;
        return this;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMobile() {
        return mobile;
    }

    public LUser setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public LUser setEmail(String email) {
        this.email = email;
        return this;
    }

    public Integer getDetailsId() {
        return detailsId;
    }

    public LUser setDetailsId(Integer detailsId) {
        this.detailsId = detailsId;
        return this;
    }

    public String getStutes() {
        return stutes;
    }

    public LUser setStutes(String stutes) {
        this.stutes = stutes;
        return this;
    }

    @Override
    public String toString() {
        return "LUser{" +
        "userId=" + userId +
        ", userName=" + userName +
        ", password=" + password +
        ", lastTime=" + lastTime +
        ", createTime=" + createTime +
        ", mobile=" + mobile +
        ", email=" + email +
        ", detailsId=" + detailsId +
        ", stutes=" + stutes +
        "}";
    }
}